<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<head>
    <title>On-line shop</title>
    <link rel="stylesheet" href="style/style.css" type="text/css" media="screen"/>
    <link rel="icon" type="image/ico" href="/images/favicon.ico">
    <!--[if IE]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>

<section id="intro">
    <header>
        <h2>Добро пожаловать на борт!</h2>
    </header>
    <p>Приветствуем всех любителей авиапутешествий.
        Здесь можно заказать билет на удобный для вас рейс!</p>

</section>
<f:view>
    <aside>
        <section>
            <h:panelGroup id="userAuthGroup">
                <a4j:include viewId="/user/login.jsp" rendered="#{!loginBean.authenticated}"/>
                <a4j:include viewId="/user/success.jsp" rendered="#{loginBean.authenticated}"/>
            </h:panelGroup>
        </section>

        <section>
            <a4j:include viewId="/instantFly.jsp"/>
        </section>
    </aside>

    <div id="content">
        <a4j:include viewId="/citiesToFly.jsp"/>
    </div>
</f:view>
<footer>
    <br/>

    <p>&copy; 2010 Андрей Б. и <a href="http://www.ifmo.ru" title="ГОУВПО СПбГУ ИТМО">сотоварищи</a></p>
</footer>

</body>
</html>
